package daobeauty.test.dao;

import daobeauty.test.domain.D1;


/**
 * Created 12.09.2008
 * @author M. Serhat Cinar
 *
 */
public interface D1FindCountDao{
	// CRUD
	public void saveOrUpdate(D1 d1);
	public void save(D1 d1);
	public void delete(D1 d1);
	public void update(D1 d1);
	
	public long findCountByNameAndSubject(String name, String subject);
	public long findCountByName(String name);
	public long findCountByNameILike(String name);
	public long findCountByNameILikeAndSubjectIsNull(String name);
	public long findCountByFirstAndLastName(String name);
	public long findCountByNameIsNotNull();
	public int findCountBySubjectIsNotNull();
}
